package com.jellyfishumbrella.GL.Primitives;
/*
import static org.lwjgl.opengl.GL11.GL_LINES;

import com.jellyfishumbrella.GL.GLColor;
import com.jellyfishumbrella.GL.MeshGL;
import com.jellyfishumbrella.GL.PolygonGroup;
import com.jellyfishumbrella.GL.Vertex;

public class Grid extends MeshGL {
	public PolygonGroup	gridEW;
	public PolygonGroup	gridNS;

	public Grid(int W, int H, int divisions) {
		GLColor c = new GLColor(0.5f, 0.5f, 0.5f, 1.0f);
		glMode = GL_LINES;

		PolygonGroup gridEW = new PolygonGroup();
		PolygonGroup gridNS = new PolygonGroup();

		synchronized (polyGroups) {
			polyGroups.add(gridEW);
			polyGroups.add(gridNS);

			for (int i = -divisions / 2; i <= divisions / 2; i++) {
				float X = W * i / (divisions);
				float Z = H * i / (divisions);

				Vertex vertA = new Vertex();
				vertA.x = X;
				vertA.y = 0.0;
				vertA.z = -H / 2.0;
				vertA.glColor = c;

				Vertex vertB = new Vertex();
				vertB.x = X;
				vertB.y = 0.0;
				vertB.z = H / 2.0;
				vertB.glColor = c;

				this.addLine(gridEW, vertA, vertB);
			}

			for (int i = -divisions / 2; i <= divisions / 2; i++) {
				float X = W * i / (divisions);
				float Z = H * i / (divisions);

				Vertex vertA = new Vertex();
				vertA.x = -W / 2.0;
				vertA.y = 0.0;
				vertA.z = Z;
				vertA.glColor = c;

				Vertex vertB = new Vertex();
				vertB.x = W / 2.0;
				vertB.y = 0.0;
				vertB.z = Z;
				vertB.glColor = c;

				this.addLine(gridNS, vertA, vertB);
			}

			setRefreshFlags(true, true);
		}
	}
}
*/